VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "CFoamChamberTy2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
'**********************************************************************************
'
'   Copyright (c) 2004, Intergraph Corporation. All rights reserved.
'
'   CFoamChamberTy2.cls
'   ProgID:         SP3DFoamChamberTy2.CFoamChamberTy2
'   Author:         Sundar(svsmylav)
'   Creation Date:  Thursday, Sep 16 2004
'   Description:
'       ASPECTS
'           Simple physical, SimplePhysical, 0
'           Detailed physical, DetailedPhysical, 4
'           Insulation, Insulation, 5
'           Operation, Operation, 6
'           Maintenance, Maintenance, 7
'           Reference geometry, ReferenceGeometry, 8
'       END
'       This is Foam Chamber Type 2 symbol, Symbol Model No. is: FS26B Page No. 336 of PDS Piping
'       Component Data Reference Guide pcd.pdf.
'
'   Change History:
'   dd.mmm.yyyy     who     change description
'   -----------     ---     ------------------
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Option Explicit

Private Const MODULE = "CFoamChamberTy2"  'Used for error messages
Private m_oSymbolHelper As IJSymbolHelper

'Declaration of the User Symbol Services interface
Implements IJDUserSymbolServices

Private Sub Class_Initialize()
    Const METHOD = "Class_Initialize:"
    On Error GoTo ErrorHandler
    
    Set m_oSymbolHelper = New SymbolServices
    m_oSymbolHelper.ProjectName = "SP3DFoamChamberTy2"
    m_oSymbolHelper.ClassName = "CFoamChamberTy2"

'**********************************************************************************
'**********************************************************************************
'   BEGIN
'**********************************************************************************
'**********************************************************************************

    m_oSymbolHelper.NumInputs = 13
    m_oSymbolHelper.AddInputDef 1, "Face1toCenter", "Face 1 to Center", 0.1524
    m_oSymbolHelper.AddInputDef 2, "FoamChamberWidth", "Foam Chamber Width", 0.1016
    m_oSymbolHelper.AddInputDef 3, "FoamChamberLength1", "Foam Chamber Length 1", 0.0762
    m_oSymbolHelper.AddInputDef 4, "FoamChamberHeight1", "Foam Chamber Height 1", 0.0635
    m_oSymbolHelper.AddInputDef 5, "FoamChamberHeight2", "Foam Chamber Height 2", 0.0889
    m_oSymbolHelper.AddInputDef 6, "FoamChamberHeight3", "Foam Chamber Height 3", 0.0635
    m_oSymbolHelper.AddInputDef 7, "FoamChamberCyltoCenter", "Foam Chamber Cylinder to Center", 0.1524
    m_oSymbolHelper.AddInputDef 8, "FoamChamberInletWidth", "Foam Chamber Inlet Width", 0.1524
    m_oSymbolHelper.AddInputDef 9, "FoamChamberInletHeight1", "Foam Chamber Inlet Height 1", 0.127
    m_oSymbolHelper.AddInputDef 10, "FoamChamberInletHeight2", "Foam Chamber Inlet Height 2", 0.1778
    m_oSymbolHelper.AddInputDef 11, "FoamChamberCylDia1", "Foam Chamber Cylinder Diameter 1", 0.0508
    m_oSymbolHelper.AddInputDef 12, "FoamChamberCylThickness", "Foam Chamber Cylinder  Thickness", 0.0254
    m_oSymbolHelper.AddInputDef 13, "FoamChamberCylDia2", "Foam Chamber Cylinder Diameter 2", 0.0762
    
    m_oSymbolHelper.NumOutputs = 6
    m_oSymbolHelper.AddOutputDef 1, "oTrapezoid1", "oTrapezoid1", 1
    m_oSymbolHelper.AddOutputDef 2, "oTrapezoid2", "oTrapezoid2", 1
    m_oSymbolHelper.AddOutputDef 3, "oTrapezoid3", "oTrapezoid3", 1
    m_oSymbolHelper.AddOutputDef 4, "oCylinderCapped1", "oCylinderCapped1", 1
    m_oSymbolHelper.AddOutputDef 5, "oCylinderCapped2", "oCylinderCapped2", 1
    m_oSymbolHelper.AddOutputDef 6, "Nozzle1", "Nozzle1", 1
    
'**********************************************************************************
'**********************************************************************************
'   END
'**********************************************************************************
'**********************************************************************************
    
' Aspects
    m_oSymbolHelper.NumAspects = 1
    m_oSymbolHelper.AddAspectDef 1, "SimplePhysical", "SimplePhysicalAspect Description", 1
    
    Exit Sub
    
ErrorHandler:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
        Err.HelpFile, Err.HelpContext
End Sub

Private Sub Class_Terminate()
    
    Set m_oSymbolHelper = Nothing

End Sub

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'
'NOTE: The code below this line was generated by the Symbol Wizard and should not be modified
'
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Public Function IJDUserSymbolServices_InstanciateDefinition( _
                ByVal CodeBase As String, _
                ByVal defParameters As Variant, _
                ByVal ActiveConnection As Object) As Object
    
' This method is in charge of the creation of the symbol definition object
    Const METHOD = "IJDUserSymbolServices_InstanciateDefinition:"
    On Error GoTo ErrorHandler
    
    Set IJDUserSymbolServices_InstanciateDefinition = m_oSymbolHelper.InstanciateDefinition(CodeBase, defParameters, ActiveConnection)
    Exit Function

ErrorHandler:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
        Err.HelpFile, Err.HelpContext
End Function

Public Function IJDUserSymbolServices_GetDefinitionName(ByVal definitionParameters As Variant) As String
    Const METHOD = "IJDUserSymbolServices_GetDefinitionName:"
    On Error GoTo ErrorHandler
    
    IJDUserSymbolServices_GetDefinitionName = m_oSymbolHelper.ProjectName + "." + m_oSymbolHelper.ClassName
    Exit Function
    
ErrorHandler:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
        Err.HelpFile, Err.HelpContext
End Function

Public Sub IJDUserSymbolServices_InitializeSymbolDefinition(ByRef pSymbolDefinition As IJDSymbolDefinition)
    
    Const METHOD = "IJDUserSymbolServices_InitializeSymbolDefinition:"
    On Error GoTo ErrorHandler
   
    m_oSymbolHelper.InitializeSymbolDefinition pSymbolDefinition
    Exit Sub

ErrorHandler:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
        Err.HelpFile, Err.HelpContext
End Sub

Public Sub IJDUserSymbolServices_InvokeRepresentation(ByVal sblOcc As Object, _
                    ByVal repName As String, _
                    ByVal outputcoll As Object, _
                    ByRef arrayOfInputs())
    
    Const METHOD = "IJDUserSymbolServices_InvokeRepresentation:"
    On Error GoTo ErrorHandler
    
    m_oSymbolHelper.InvokeRepresentation sblOcc, repName, outputcoll, arrayOfInputs
    Exit Sub

ErrorHandler:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
        Err.HelpFile, Err.HelpContext
End Sub

Public Function IJDUserSymbolServices_EditOccurence(ByRef pSymbolOccurence As Object, ByVal transactionMgr As Object) As Boolean
    Const METHOD = "IJDUserSymbolServices_EditOccurence:"
    On Error GoTo ErrorHandler
    
    ' The definition uses the generic EditOccurrence command
    IJDUserSymbolServices_EditOccurence = False
    Exit Function
    
ErrorHandler:
    Err.Raise Err.Number, Err.Source & " " & METHOD, Err.Description, _
        Err.HelpFile, Err.HelpContext
End Function

